package com.example.javatwo.service.cg.lmx;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Service;

import com.example.javatwo.mapper.cg.lmx.WuLiaoMapper;
import com.example.javatwo.pojo.cg.lmx.Product;
import com.example.javatwo.pojo.cg.wmj.Supplier;

@Service
public class WuLiaoService {
	@Autowired
	private WuLiaoMapper wlMapper;

	public List<Product> loginSelectAll() {
		return wlMapper.loginSelectAll();
	}

	public Product selectId(String id) {
		return wlMapper.selectId(id);
	}

	// 分页查询
	public List<Product> QuerySupplierPage(@Param("currentPage") int currentPage) {
		return wlMapper.QuerySupplierPage(currentPage);
	}
	public int QuerySumCount(){
		return wlMapper.QuerySumCount();
	}
}
